<#include "header.ftl">
<style>
.bx-wrapper .bx-viewport {
	-moz-box-shadow: 0 0 0px #ccc;
	-webkit-box-shadow: 0 0 0px #ccc;
	box-shadow: 0 0 0px #ccc;
	border: solid #fff 5px;
	left: -5px;
	background: #fff;
}
.starter-template {
	  padding: 120px 15px;
	  text-align: center;
	}
.s-word-top{
	text-align: left;
	margin-top: -7px;
	margin-left: 250px;
	line-height: 16px;
	font-size: 14px;
	font-family: arial, 'Hiragino Sans GB', 'Microsoft Yahei', '微软雅黑', '宋体', \5b8b\4f53, Tahoma, Arial, Helvetica, STHeiti;
}
.s-word-top a{margin-left: 16px;}
.s_btn_wr{
	width: 43px;
}
#s_fm {
	text-align: left;
	padding-left: 54px;
	z-index: 300;
	height: 43px;
}

.form-control {
	position: relative;
	margin: auto;
	font-size: 16px;
	height: 45px;padding: 9px 7px;
	width:489px;
	padding: 10px;
	-webkit-box-sizing: border-box;
   	-moz-box-sizing: border-box;
        box-sizing: border-box;
}
.form-control:focus {
  z-index: 2;
}
.form-control input[type="text"] {
  margin-bottom: -1px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
</style>
    <!--container start-->
	<div class="container">
        <div class="starter-template">
		    	<div class="s_nav">
		    		<a href="/" class=s_logo onmousedown="return c({'fm':'tab','tab':'logo'})">
		    			<img src="${TEMPLATE_PATH}/img/logo.png" width="270" height="129">
		    		</a>
		    		<p id="nv" class="s-word-top" style="display:none;">
			    		<a href="/">首页</a>
			    		<a href="/chart/index.htm">图表分析</a>
			    		<a href="/service/index.htm">共享</a>
			    		<a href="/blog/index.htm">学习专区</a>
			    		<a href="/news/index.htm">及时数据</a>
		    		</p>
		    	</div>
			    <form class="navbar-form navbar-center" role="form">
		            <div class="form-group">
		            	<input type="text" id="stock_code" name="stock_code" class="form-control" maxlength="100" placeholder="股票代码" autofocus />
		            </div>
		            <button id="search" name="search" type="button" class="btn btn-lg btn-primary" >分析一下</button>
		            <strong for="stock_code" class="help-block" style="color:red;" id="help_tip"></strong>
		          </form>
		    </div>
    </div>
     <!--container end-->
<script>
$(function(){
	 $('#search').click(function(){
		 var codeId=$('#stock_code').val();
		 $.post("${basePath}/search.json",{'codeId':codeId},function(data){
				if(data.result){
					window.location.href = "${basePath}"+data.t;
				}else{
					$("#help_tip").html("找不到你要搜索的股票"+codeId+"相关图表");
				}
		},"json");
		
	 });
});
</script>
</body>
</html>